﻿Imports DAO
Imports DTO
Public Class SANHBUS
    Private dao As New SANHDAO()

    Public Function load_sanh() As DataTable
        Return dao.loadsanh()
    End Function
    Public Function them_sanh(ByVal dto As SANHDTO) As Boolean
        If dao.them_SANH(dto) = True Then
            Return True
        Else
            Return False
        End If
    End Function

    Public Function capnhat_sanh(ByVal dto As SANHDTO) As Boolean
        If dao.capnhat_sanh(dto) = True Then
            Return True
        Else
            Return False
        End If
    End Function

    Public Function xoa_sanh(ByVal dto As SANHDTO) As Boolean
        If dao.xoa_SANH(dto) = True Then
            Return True
        Else
            Return False
        End If
    End Function
End Class
